package com.mxnavi.smartd.coreui.ui.home

import android.os.Bundle
import android.view.View
import androidx.fragment.app.viewModels
import com.mxnavi.smartd.coreui.R
import com.mxnavi.smartd.coreui.business.viewmodel.HomeViewModel
import com.mxnavi.smartd.coreui.ui.BaseFragment

/**
 * @author     ：zhong.jw
 * @date       ：Created in 2024/2/21 16:03
 * @description：
 * 应用主页，
 */
class HomeFragment : BaseFragment() {

    private val mViewModel: HomeViewModel by viewModels<HomeViewModel>()

    private val mEnterSmartModeIntroduceView: View by lazy { findViewById(R.id.fragment_home_smart_mode_introduce_btn) }

    override fun onInflateLayout(): Int {
        return R.layout.fragment_home
    }

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)

        mEnterSmartModeIntroduceView.setOnClickListener {
            navigationTo(R.id.driveModeIntroduceFragment)
        }

    }

}